/**
 * 
 */
package kevin.study.zephyr.domain.model.view;

import kevin.study.zephyr.domain.model.Field;
import kevin.study.zephyr.domain.model.base.Base;

/**
 * @author Kevin.Huang
 * @date 2007-10-9
 */
public class ViewColumn extends Base implements Comparable< ViewColumn > {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3299965270000778451L;

	private Integer position;

	private Field field;

	/**
	 * @return the position
	 */
	public Integer getPosition() {
		return position;
	}

	/**
	 * @param position
	 *            the position to set
	 */
	public void setPosition(Integer position) {
		this.position = position;
	}

	/**
	 * @return the field
	 */
	public Field getField() {
		return field;
	}

	/**
	 * @param field
	 *            the field to set
	 */
	public void setField(Field field) {
		this.field = field;
	}

	public int compareTo(ViewColumn o) {
		return this.position.compareTo(o.getPosition());
	}

}
